package top.z.orm.handle.osql.util;

import top.z.orm.handle.osql.core.TokenUtil;

import java.util.Map;

public class StringUtil {

    public static String replaceWithMap(String text, Map<String, String> map) {
        return TokenUtil.processWithMap(text, "#{", "}", map);
    }

    public static String replaceWithMap(String text, Map<String, String> map, String startToken, String endToken) {
        return TokenUtil.processWithMap(text, startToken, endToken, map);
    }
}